class Wildschweinjaeger extends Worker{
	
	int numberOfRuns;

	public Wildschweinjaeger(Kuehlhaus lager, int numberOfRuns){
		this(lager, numberOfRuns ,10);
	}
	
	public Wildschweinjaeger(Kuehlhaus lager, int numberOfRuns, int delay){
		super(null, lager, 1, 1, delay);
		this.numberOfRuns = numberOfRuns;
	}
	
	public void run(){
		while(true){
			work();
			if(this.numberOfRuns == this.workCounter)
				break;
		}
	}
	
	protected void message(String msg){
		System.out.println("Wildschweinjaeger: "+msg);
	}

}